% reading input data for upscaling problem

% input_data is a matlab function who gets in this order:

    % IMEX .exe adress (with that u can run automatically the new .dat)
    % IMEX file (.dat) adress (the one who will be upscaled)
    % output folder adress (for obvious things)
    % nsize -> upscaling new grid size (this is an important one)
    % refino -> block well treatment (1 = keep the refinement)
    %     (for more information see topic 4.6 on Filho, D. S. M. 2009)
    % transmi -> transmissibility upscaling (only for flowbased method)
    %     (for more information see topic 5 on Durlofsky, L. J. 2003)
    % method -> choice of method for the transfer of scale

% by jose augusto f. ramos (zeaugustofr@gmail.com)                        %
%                                                                         %
% last updade date: 16/08/2011

function [imex,arquivo,outfolder,nsize,refino,transmi,method] = input_data

%Open input file main_input.txt

fid2 = fopen('input\main_input.txt','r');

for i=1:3
    lixo = fgetl(fid2);
end

imex = fgetl(fid2);

for i=1:2
    lixo = fgetl(fid2);
end

arquivo = fgetl(fid2);

for i=1:2
    lixo = fgetl(fid2);
end

outfolder = fgetl(fid2);

for i=1:2
    lixo = fgetl(fid2);
end

nsize = fgetl(fid2);
nsize = str2num(nsize);

for i=1:2
    lixo = fgetl(fid2);
end

refino = fgetl(fid2);
refino = str2num(refino);

for i=1:2
    lixo = fgetl(fid2);
end

transmi = fgetl(fid2);
transmi = str2num(transmi);

for i=1:2
    lixo = fgetl(fid2);
end
method = fgetl(fid2);
method = str2num(method);